import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-myc09',
  templateUrl: './myc09.component.html',
  styleUrls: ['./myc09.component.css']
})
export class Myc09Component implements OnInit {

  public peopleInfo: any = {
    username: '',
    sex: 1,
    cityList: ['北京', '上海', '深圳'],
    city: '北京',
    hobby: [{
      title: '吃饭',
      checked: false
    }, {
      title: '睡觉',
      checked: false
    }, {
      title: '写代码',
      checked: true
    }]
  }
  constructor() { }

  ngOnInit(): void {
  }
  doSubmit() {
    console.log(this.peopleInfo);

  }
}
